package cn.zbmao.web.services;

import cn.zbmao.web.util.dao.DaoFactory;
import com.jfinal.plugin.activerecord.Record;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class UserServices {
	//获取用户设置
	public static Map<String, List<Record>> getUserInfo(int user_id){
		Map<String, List<Record>> user_info = new HashMap<String, List<Record>>();
		List<Record> user_keyword = DaoFactory.getUserDao().getUser_key(user_id);
		List<Record> user_url = DaoFactory.getUserDao().getUser_url(user_id);
		List<Record> user_district = DaoFactory.getUserDao().getUser_district(user_id);
		List<Record> user_qualification = DaoFactory.getUserDao().findUserQualificationNameAllWithIsOk(user_id);
		user_info.put("user_keyword", user_keyword);
		user_info.put("user_url", user_url);
		user_info.put("user_district", user_district);
		user_info.put("user_qualification", user_qualification);
		return user_info;
	}

}
